package com.lzwk.app.function;

import org.apache.flink.table.functions.ScalarFunction;

/**
 * @title: StartsWith
 * @Author Yeaser
 * @Date: 2022/2/25 16:37
 * @Version 1.0
 * Description: TODO
 */
public class StartsWith extends ScalarFunction {
    public Boolean eval(String str1,String str2) {
        if(str1 != null){
            if(str1.startsWith(str2)){
                return true;
            }else {
                return false;
            }
        }else {
            return false;
        }
    }
}
